package org.ch00.test07.demo01;

/**
 * @author ZQX
 * @date 2025-03-05
 */
public class MainTest02 {
    public static void main(String[] args) {
        Computer c = new Computer();

        XiaoLingTongPhone x = new XiaoLingTongPhone();
        ZhiNengPhone z = new ZhiNengPhone();

        // 错误：连接的设置必须是实现 USB 接口的任何实现类 - 基于接口实现多态
        // 小灵通没有实现 USB 接口
        // c.connection(x);

        x.zaRen();
        x.call();
        x.sendMessage();

    }
}
